import 'package:flutter/material.dart';

class AppColor {
  /// String is in the format "aabbcc" or "ffaabbcc" with an optional leading "#".
  static Color fromHex(String hexString) {
    final buffer = StringBuffer();
    if (hexString.length == 6 || hexString.length == 7) buffer.write('ff');
    buffer.write(hexString.replaceFirst('#', ''));
    return Color(int.parse(buffer.toString(), radix: 16));
  }

  static const Color colorDefaultText = Color.fromRGBO(51, 51, 51, 1);
  static const Color bg=Color.fromRGBO(241, 241, 241, 1);
  static const Color colorHintText = Color.fromRGBO(153, 153, 153, 1);
  static const Color colorTheme = Color.fromRGBO(0, 220, 169, 1);
  static const Color colorDialog = Color.fromRGBO(10, 132, 255, 1);
  static const Color colorBlue = Color.fromRGBO(33, 144, 255, 1);
  static const Color colorLine=Color.fromRGBO(233, 233, 233, 1);

  static const Color colorText85 = Color.fromRGBO(85, 85, 85, 1);

  static const Color colorGrey214=Color.fromRGBO(214, 214, 214, 1);
  static const Color colorGrey245=Color.fromRGBO(245, 245, 245, 1);
  static const Color colorGrey153=Color.fromRGBO(153, 153, 153, 1);
  static const Color colorGrey193=Color.fromRGBO(193, 193, 193, 1);
}
